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.

Annotations do not support @ symbol

See original GitHub issue

I may be able to have a crack at this myself soon, but it seems that when you use the @ symbol in your text for an annotation (I’ve noticed this specifically for the pattern attribute, the text after and including the @ symbol is chopped off

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
robertdempseycommented, Jul 21, 2020

@Livven it’s not pretty, but I’ve found that you can add a negative lookahead for the ` character like so:

/**

  • @pattern ^(?!.[`])[aA-zZ0-9 -_ ``@~=+!#$^%&()[];'.,].(?!gif)\w{3,5}$ */ type Filename = string;

Notice the (?!.*[`]) after the ^ - this means that even though you are allowing ` in the following section, it won’t return a match if ` is in your test string. The only thing is now you have to have two backticks to escape your @ symbol

Hope this helps

1reaction
robertdempseycommented, Jul 21, 2020

For reference, this is where I found the workaround, maybe it’ll help you

https://github.com/microsoft/TypeScript/pull/32138

Read more comments on GitHub >

github_iconTop Results From Across the Web

00020: Annotation layer uses a symbol that is not supported
Your annotation layer contains symbols that are not supported for basemap layers or map services. The unsupported symbol type is indicated in the...
Read more >
AutoCAD Mechanical | Autodesk Knowledge Network
Annotation Scaling is not supported for AutoCAD Mechanical symbols. ... AutoCAD Mechanical objects do not react to annotation scales.
Read more >
Support Annotations - Android Studio Project Site
When you're using Android Studio and IntelliJ, the IDE will flag calls where you are passing the wrong type of parameter to methods...
Read more >
Can not resolve symbol annotation design ActivityCompat v7
But android studio says symbol not found. Here is my activity. All four of them don't work. import android.support.annotation.NonNull; import ...
Read more >
FAQ: What is inline annotation? - Esri Support
Most annotation references a symbol ID in the symbol collection which governs how that piece of annotation will be symbolized. Inline annotation store...
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