[bug-2422]Perspective BarcodeScannerInput special characters

Hello,

I’m using Ignition 8.1.5.

I’m trying to make the BarcodeScannerInput component to read barcode data that ends with a “line feed” character (\n):


image

I tried different ways:

  • \n
  • \x0A
  • \\n
  • \cJ

but they won’t work.

The regex I put is: /[\w\W]{1,}\n/g

The Ignition login, when it comes to scan the badge to successfully log in, it does work.
But I can’t make the BarcodeScannerInput to work with escaped characters (with any alphanumeric character it works)

Any solution?