Commit 20184a8b authored by gmantele's avatar gmantele
Browse files

[ADQL] Correct the built-in regular expression for allowed STCS coordinate systems.

parent bf9f86d3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ import adql.query.operand.function.geometry.RegionFunction;
 * </i></p>
 * 
 * @author Gr&eacute;gory Mantelet (ARI)
 * @version 1.3 (10/2014)
 * @version 1.3 (12/2014)
 * @since 1.3
 */
public final class STCS {
@@ -538,9 +538,9 @@ public final class STCS {
		}

		// The final regular expression must be reduced to a coordinate system and nothing else after:
		finalRegExp.append(")\\s*");
		finalRegExp.append(")\\s*$");

		return (nbCoordSys > 0) ? finalRegExp.append(")$").toString() : defaultCoordSysRegExp;
		return (nbCoordSys > 0) ? finalRegExp.toString() : defaultCoordSysRegExp;
	}

	/**