Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml: adjust gsub pattern in from_xml #127

Merged
merged 1 commit into from Mar 15, 2019
Merged

Conversation

lishulong
Copy link
Contributor

  • change pattern
  • add test to parse 100KB+ data in 0.2 second

@pengsven pengsven self-requested a review March 15, 2019 09:23
@lishulong lishulong merged commit 5b61966 into master Mar 15, 2019
@@ -449,7 +449,7 @@ end

function _M.from_xml(str)
str = string_gsub(str, '<!--(.-)-->', '')
str = string_gsub(str, '<?(.-)?>', '')
str = string_gsub(str, '<[?](.-)[?]>', '')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.-可以去掉吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants