Godot: [3.0] String.match() not found.

Created on 8 Jul 2017  路  5Comments  路  Source: godotengine/godot

Operating system or device - Godot version:
Ubuntu 17.10 - Godot v3.0-alpha.custom_build

Issue description:

I compiled the master branch yesterday evening and I am not able to use the String.match() function anymore.

Whatever parameter I pass, it raises the following error:

error(9, 13): Expected identifier as member

The String.matchn() function seems work though.

It's weird because the ustring.cpp code has not been touched for a long time :confused:

Steps to reproduce:

extends Node

func _ready():
    var title = 'Hello world!'
    print(title.match('Hello*'))
bug gdscript

Most helpful comment

Seems like a duplicate of #8085.

All 5 comments

I guess it is because "match" became keyword.
there is related issue for this.

Seems like a duplicate of #8085.

@karroffel noted same method here https://github.com/godotengine/godot/issues/8085#issuecomment-290711293

This seems to be fixed in the latest master.

Indeed, fixed by @bojidar-bg.

Was this page helpful?
0 / 5 - 0 ratings