Skip to content

Handle double quoted patterns#247

Merged
esmasth merged 2 commits intoTypeFox:masterfrom
esmasth:esmasth/issue239
Apr 8, 2026
Merged

Handle double quoted patterns#247
esmasth merged 2 commits intoTypeFox:masterfrom
esmasth:esmasth/issue239

Conversation

@esmasth
Copy link
Copy Markdown
Collaborator

@esmasth esmasth commented Sep 7, 2024

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.

@esmasth esmasth changed the title Handled double quoted patterns Handle double quoted patterns Sep 7, 2024
…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.
actions/upload-artifact v3 was deprecated and now auto-fails.
Upgrade checkout, setup-java, and upload-artifact to v4.
@esmasth esmasth marked this pull request as ready for review March 16, 2026 23:43
@esmasth esmasth requested a review from dhuebner April 7, 2026 16:55
@esmasth esmasth merged commit 8224b60 into TypeFox:master Apr 8, 2026
2 checks passed
@esmasth esmasth deleted the esmasth/issue239 branch April 8, 2026 08:59
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.

2 participants