TUFLOW-Support / QGIS-TUFLOW-Plugin

TUFLOW related QGIS Plugins
9 stars 7 forks source link

Fix issue with reg ex and square brackets #22

Closed anthony-cooper closed 3 years ago

anthony-cooper commented 3 years ago

Think this fixes https://github.com/TUFLOW-Support/QGIS-TUFLOW-Plugin/issues/21 Uses standard split instead of RegEx split, removing issues with square brackets. Quick test suggests this allows time series results to load successfully Not sure if there are other places where a similar issue will occur with square brackets

TUFLOW-Support commented 3 years ago

Hi, thank you for letting us know and for looking into the issue. I think it used to be done via standard split however was changed to a regex split (I image in response to a previous issue). So instead I have used re.escape() to escape special characters. I have also searched through the rest of the code to do the same thing where required. Thanks again.