question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on regex of type /(\$.[^ \n]*)/ in changeMessage field

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:31 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
alexandercerutticommented, Apr 8, 2019

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?

1reaction
alexander-sancommented, Apr 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found