Skip to content

Commit

Permalink
Bugfix for eclipse-jdt#1803: [Externalize Strings] IndexOutOfBoundsEx…
Browse files Browse the repository at this point in the history
…ception.
  • Loading branch information
nettozahler committed Nov 21, 2024
1 parent 0a1cd63 commit 5f9ca43
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
public class NLSHint {

/**
* A text block begins with three double-quote characters followed by a line terminator. A text
* block cannot be on a single line, nor can the contents of the text block follow the three opening
* double-quotes immediately without a line terminator.
* A text block begins with three double-quote characters followed by zero or more white spaces followed by
* a line terminator. A text block cannot be on a single line, nor can the contents of the text block follow
* the three opening double-quotes (and maybe whitespace) immediately without a line terminator.
*/
private static final Pattern TEXT_BLOCK_START_PATTERN = Pattern.compile("^\"\"\"\r?\n"); //$NON-NLS-1$
private static final Pattern TEXT_BLOCK_START_PATTERN = Pattern.compile("^\"\"\"\\s*\r?\n"); //$NON-NLS-1$

private String fAccessorName;
private IPackageFragment fAccessorPackage;
Expand Down

0 comments on commit 5f9ca43

Please sign in to comment.