Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds_xpathparser
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
feeds_xpathparser
Commits
127808bb
Commit
127808bb
authored
14 years ago
by
Chris Leppanen
Browse files
Options
Downloads
Patches
Plain Diff
bug fixed in the magical REGEX thanks to tyler-durden
parent
55541777
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FeedsXPathParser.inc
+2
-3
2 additions, 3 deletions
FeedsXPathParser.inc
with
2 additions
and
3 deletions
FeedsXPathParser.inc
+
2
−
3
View file @
127808bb
...
...
@@ -7,7 +7,7 @@
* Provides the HTML and XML Classes for Feeds XPath Parser.
*/
define
(
'FEEDS_XPATH_PREG'
,
'/(\/{0,2})(?<![=:\'"-
\s[
])\b(\w+)\b(?!:)(?![\(
\s
])/i'
);
define
(
'FEEDS_XPATH_PREG'
,
'/(\/{0,2})(?<![=:\'"-])\b(\w+)\b(?!:)(?![\(])/i'
);
/**
* Base class for the HTML and XML parsers.
...
...
@@ -43,7 +43,6 @@ class FeedsXPathParserBase extends FeedsParser {
$all_items
=
$this
->
namespacedXPathQuery
(
$xml
,
$this
->
source_config
[
'context'
]);
unset
(
$xml
);
$parsed_items
=
array
();
foreach
(
$all_items
as
$item
)
{
$parsed_item
=
array
();
...
...
@@ -99,6 +98,7 @@ class FeedsXPathParserBase extends FeedsParser {
* An array containing the results of the query.
*/
protected
function
parseSourceElement
(
$item
,
$query
,
$source
)
{
if
(
empty
(
$query
))
{
return
;
}
...
...
@@ -116,7 +116,6 @@ class FeedsXPathParserBase extends FeedsParser {
$result
=
(
string
)
$result
;
}
}
/**
* If their is one result, return it directly. If there is more than one,
* return the array.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment