Merged
Conversation
esmasth
commented
Sep 7, 2024
yang-lsp/io.typefox.yang/src/main/java/io/typefox/yang/validation/YangValidator.xtend
Outdated
Show resolved
Hide resolved
6121909 to
46bb478
Compare
…r RFC 7950 StringConverter.toValue() now processes escape sequences (\\, \n, \t, \") in double-quoted strings per RFC 7950 Section 6.1.3. This fixes regex patterns with backslash escapes being incorrectly rejected.
46bb478 to
746cd7d
Compare
actions/upload-artifact v3 was deprecated and now auto-fails. Upgrade checkout, setup-java, and upload-artifact to v4.
dhuebner
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This addresses #239
https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xpath/regex/RegularExpression.html used by yang-lsp expects W3C pattern which is single quoted, whereas YANG double quoted syntax includes escaped backslashes
\\which need to be unescaped before passing to W3C pattern regex handler.