Error on regex of type /(\$.[^ \n]*)/ in changeMessage field
See original GitHub issueI have a pass the respects the schema outlined on the Apple Developer website and which I can successfully create with ./signpass -p <file>
and also successfully verify with ./signpass -v <file>
Yet still when I try to generate this pass after following all the steps in the README I get this error when I try to generate the pass.
Error: Validation of pass type failed. Pass file is not a valid buffer or (more probabily) does not respect the schema. Refer to https://apple.co/2Nvshvn to build a correct pass.
at readFile.then.passStructBuffer (~/node_modules/passkit-generator/src/pass.js:135:15)
This even happens with some of the Sample passes from the Apple website (Tutorial), e.g. the BoardingPass.pass.
I tried looking into the code but I can not determine at which step or part of the JSON file it fails and also the error message is not very specific. Is there any chance you know where this comes from or how I could fix this or determine where the error comes from?
Issue Analytics
- State:
- Created 4 years ago
- Comments:31 (16 by maintainers)
Top Results From Across the Web
Regular Expression \n (new line) error - Stack Overflow
I'm not sure how nice right-to-left text is when used in a regular expression set. Where are you getting this error? If that's...
Read more >How to change error message "must be a number type..." #211
I try validate number field. if I get value of type string or special symbols for example "++++" I get validation error "temperature...
Read more >Everything you need to know about Regular Expressions
After reading this article you will have a solid understanding of what regular expressions are, what they can do, and what they can't...
Read more >perlre - Perl regular expressions - Perldoc Browser
This page describes the syntax of regular expressions in Perl. ... Various control characters can be written in C language style: "\n" matches...
Read more >Regular expressions - Miller Latest Documentation
Miller lets you use regular expressions (of the types accepted by Go) in the following contexts: In mlr filter with =~ or !=~...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh okay, now I got it. You are right.
I mean, for the second part, my doubt is: shouldn’t we uniform the way the package let to add placeholders? Like all with $ or none?
Exactly so the
[A-Z]
is the exactly one and the[A-Z0-9]*
part is 0 or more which combined together gives the original 1 or more what we want.Second part I am still not sure what your plans are sorry.