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.

Should TAN's really allow SPACE characters?

See original GitHub issue

The RegEx for reading TANs is done with ^(TAN|TELETAN) ([ a-zA-Z0-9]{6,30})$

This means e.g. this is a valid TAN: TAN  ABCDEF

There are two consecutive SPACES after “TAN”. The first SPACE separating “TAN” and the actual content. The second SPACE is part of the “TAN value” (followed by the “ABCDEF” characters), meaning the value of the TAN is  ABCDEF (starting with SPACE).

This would also be a valid TAN (with TAN TAN ANOTHER TAN being the “value” of the TAN): TAN TAN TAN ANOTHER TAN

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
johanneseschrigcommented, May 19, 2020

Hello together, thanks for the feedback! You are right, this should not be the regex for validating TANs. The reason for this code is that we are still waiting for final specifications. We will change this code to something more sensible once we have that information available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should whitespace characters be allowed in a password?
Can even a single space character be easily and quickly identified? However, plenty of other types of systems do allow spaces in passwords....
Read more >
white-space - CSS: Cascading Style Sheets - MDN Web Docs
The white-space CSS property sets how white space inside an element is handled.
Read more >
4 Unexpected Neutrals to Give Your Space Some Spice
A space done in neutrals can be much more creative and exciting than just layers ... you need to give your home décor...
Read more >
How to Make Spaces in HTML - ThoughtCo
The source of the problem is that HTML compresses all space characters—tabs, spaces, and carriage returns—to one character.
Read more >
Using the \tab Command - TeX - LaTeX Stack Exchange
The command \tab exists, but it produces quite a large space. ... However, you can stack the commands in order to get the...
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